export default function (wsUrl: string) {
  if (import.meta.env.MODE == 'production') return wsUrl;
  return wsUrl.replace(`wss://${location.host}`, `wss://${location.host}/ws`);
}
